﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using GeneralDFS.Common.Network;
using NIF.MobileActors.Hosts;

namespace DXWinFormDataAnalysis
{
    public partial class MainForm : DevExpress.XtraEditors.XtraForm
    {
        public MainForm()
        {
            InitializeComponent();
            RemotingHost.RegisterLocal(IPHelper.GetLocalIP("network"), 8820);
        }

        private void bt_FileExplorer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            (new FileExplorer()).ShowDialog();
        }

        private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            (new Form1()).Show();
        }

        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            (new CpuMonitor()).Show();
        }

        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            (new MemoryMonitor()).Show();
        }

        private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            (new DNCounter()).Show();
        }
    }
}